﻿using SaaS.Model.Enums;
using System;
using XCore.Domain.Dto;
using XCore.Domain.Entities;

namespace SaaS.Model.Dto.Sites
{
    public class OrderPageDto : EntityDto, IHasCreationTime, IHasCreateionIpAddress
    {
        /// <summary>
        /// 用户id
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 用户名称
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 产品ID
        /// </summary>
        public int ProjectId { get; set; }
        /// <summary>
        /// 产品明细ID
        /// </summary>
        public int ProjectDetailId { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string ProjectName { get; set; }
        /// <summary>
        /// 价格
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 折扣
        /// </summary>
        public decimal Discount { get; set; }
        /// <summary>
        /// 总价
        /// </summary>
        public decimal TotalPrice { get; set; }
        /// <summary>
        /// 支付类型
        /// </summary>
        public PayType PayType { get; set; }
        /// <summary>
        /// 订单状态
        /// </summary>  
        public OrderStatus Status { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreationTime { get; set; }
        /// <summary>
        /// 客户端IP地址
        /// </summary>
        public string IP { get; set; }
    }
}
